package com.example.demo.controller;

import org.springframework.web.bind.annotation.*;

/**
 * 请求方法
 */
@RestController
@RequestMapping("/method")
public class MethodController {
    @GetMapping
    public String method() {
        return "get data";
    }

    @PostMapping
    public String methodPost() {
        return "post data";
    }

    @DeleteMapping
    public String methodDelete() {
        return "delete data";
    }

    @PutMapping
    public String methodPut() {
        return "put data";
    }
}
